package student.aistar.mapper;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import student.aistar.model.entity.Comment;

import java.util.List;

@Repository
public interface CommentRepository extends MongoRepository<Comment,String> {
    Page<Comment> findByParentid(String parentid, Pageable pageable);
    List<Comment> findByState(String state);
    List<Comment> findByAid(String aid);
}
